package com.netmarch.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.netmarch.dao.UserDao;
import com.netmarch.entity.User;

@Service
public class UserService {
	
	@Autowired
	private UserDao ud;
	
	public List<User> findByName(String name){
		return ud.findByName(name);
	}
	
	public List<User> getAllByName(String name){
		return ud.getAllByName(name);
	}

}
